<?

function V_Event_Detail($arrayData) {
    $ulr = "?" . MODUL . "=services&" . ACTION . "=";

    $parent_id = CM_getParameter('parent_id');
    if ($parent_id != "") {
	$url = "&parent_id=$parent_id";
    }
    ?>
    <script>
        function GotoPage(iPage) {
    	document.frm.action = document.frm.action + "&curPg=" + iPage;
    	document.frm.submit();
        }
    </script>
    <div>
        <form name="frm" action="<?= $ulr ?>List<?= $url ?>"  method="post" enctype="multipart/form-data">
    	<h3>Chi tiết sự kiện</h3>
	    <? if (!empty($arrayData)) { ?>
		<div class="title_services" style="margin-top: 0px;border-bottom: 1px solid #dfdfdf;font-style: italic">
		    <h4><b><?= $arrayData['title_event'] ?></b></h4>
		</div>
		<div style="float: right;margin-top: 20px">
		    <a><i>Ngày viết: <?= $arrayData['date_event'] ?></i></a>
		</div><br/><br/>
		<div align="center"  style="margin-top: 30px;">
                    <img width="500px" src="<?= DIR_IMG_EVENT . $arrayData['image_event'] ?>"/>
                </div>
		<div style="padding: 20px">
		    <p style="line-height: 20px;"><?=$arrayData['content_event']?></p>
		</div>
		<br/><br/>
		<div style="float: right;margin-top: 20px">
		    <a><i>Tác giả: <?= $arrayData['author_event'] ?></i></a>
		</div>
		    <?
		} else {
		    echo "Không có sữ liệu !.";
		}
		?>
        </form>
    </div>
    <?
}
?>